import request from '@/utils/request'

// 用户新增
export const postUser = (data) => {
  return request.post('/admin/user/save', {
    account: data.account,
    mobile: data.mobile,
    username: data.username,
    status: data.status,
    avatar: data.avatar,
    end_date: data.end_date,
    password: data.password

  }
  )
}
// 修改
export const updataUser = (data) => {
  return request.post('/admin/user/save', {
    account: data.account,
    mobile: data.mobile,
    username: data.username,
    status: data.status,
    avatar: data.avatar,
    end_date: data.end_date,
    password: data.password,
    id: data.id
  }
  )
}

// 获取用户
export const postUsser = (data) => {
  return request.post('/admin/user/list', {
    page: data.page,
    limit: data.limit,
    keyword: data.keyword
  }
  )
}
